import Layout from '@/pages/public/layout' // 公共部分

const recharge = [{
  path: '/finance/recharge',
  component: Layout,
  children: [{
    path: 'list',
    component: () => import('@/pages/finance/recharge/index.vue'),
    meta: {
      title: '通用充值配置-列表',
      permission: 'finance.recharge.common.list'
    }
  }, {
    path: 'create',
    component: () => import('@/pages/finance/recharge/create.vue'),
    meta: {
      title: '通用充值配置-新建',
      permission: 'finance.recharge.common.create'
    }
  }, {
    path: ':id/edit',
    component: () => import('@/pages/finance/recharge/edit.vue'),
    meta: {
      title: '通用充值配置-编辑',
      permission: 'finance.recharge.common.edit'
    }
  }, {
    path: 'ios/list',
    component: () => import('@/pages/finance/recharge/ios/index.vue'),
    meta: {
      title: 'IOS充值配置-列表',
      permission: 'finance.recharge.ios.list'
    }
  }, {
    path: 'ios/create',
    component: () => import('@/pages/finance/recharge/ios/create.vue'),
    meta: {
      title: 'IOS充值配置-新建',
      permission: 'finance.recharge.ios.create'
    }
  }, {
    path: 'ios/:id/edit',
    component: () => import('@/pages/finance/recharge/ios/edit.vue'),
    meta: {
      title: 'IOS充值配置-编辑',
      permission: 'finance.recharge.ios.edit'
    }
  }, {
    path: 'ios/config',
    component: () => import('@/pages/finance/recharge/ios/config.vue'),
    meta: {
      title: 'IOS通用配置',
      permission: 'finance.recharge.ios.config'
    }
  }, {
    path: 'record',
    component: () => import('@/pages/finance/recharge/record.vue'),
    meta: {
      title: '充值记录',
      permission: 'finance.recharge.record'
    }
  }]
}]

export default recharge
